package com.hz.web.service.impl;

import com.hz.web.dao.CertificatoryCompMapper;
import com.hz.web.entity.CertificatoryComp;
import com.hz.web.service.ICertificatoryCampanyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CertificatoryCampanyImpl implements ICertificatoryCampanyService {

    @Resource
    private CertificatoryCompMapper certificatoryCompMapper;

    @Override
    public int insertertificatory(CertificatoryComp entity) {
        return certificatoryCompMapper.insert(entity);
    }

    @Override
    public List<CertificatoryComp> selectByTypeAndNameOrNum(String type, String nameOrNum) {
        return certificatoryCompMapper.selectByTypeAndNameOrNum(type,nameOrNum);
    }

    @Override
    public List<CertificatoryComp> selectByCompanyId(Map<String, Object> map) {
        return certificatoryCompMapper.selectByCompanyId(map);
    }

    @Override
    public int selectByCompanyIdCount(Map<String, Object> parmsMap) {
        return certificatoryCompMapper.selectByCompanyIdCount(parmsMap);
    }

    @Override
    public int deleteByPrimaryKey(CertificatoryComp certificatoryComp) {
        return certificatoryCompMapper.deleteByPrimaryKey(certificatoryComp);
    }


}
